#include<stdio.h>

int main()
{
    int x,y,z;
    int min,mid,max;

    freopen("p0201.in","r",stdin);
    while(3==scanf("%d%d%d",&x,&y,&z))    {
        min=x;
        if(y<min)min=y;
        if(z<min)min=z;
        max=x;
        if(y>max)max=y;
        if(z>max)max=z;
        mid=x+y+z-min-max;
        printf("%d %d %d\n",min,mid,max);
    }


    return 0;
}
